package com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.manager.sysman.sysmanRole;

import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.manager.sysman.sysmanRole.SysmanRole;
import java.util.List;
import java.util.Map;

public interface SysmanRoleMapper {

	int deleteByPrimaryKey(Long id);

	int selectCountByMap(Map<Object, Object> map);

	List<SysmanRole> selectListByMap(Map<Object, Object> map);

	int insert(SysmanRole record);

	int insertSelective(SysmanRole record);

	SysmanRole selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(SysmanRole record);

	int updateByPrimaryKey(SysmanRole record);

	/**
	 * 根据 后台用户 获取用户id下所包含的所有角色集合
	 * 
	 * @param id
	 *            用户id
	 * @return
	 */
	List<SysmanRole> selectBySysmanUserId(Long id);
}